package com.boot.es.lang;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * 自定义返回封装类
 * @date 2020/10/23 14:18
 */
@Data
@AllArgsConstructor
public class Result {


    /**
     * 返回代码
     */
    private Integer code;

    /**
     * 返回信息
     */
    private String msg;

    /**
     * 返回对象
     */
    private Object object;


    public Result(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
